package service.impl;

import dao.ITopicDao;
import dao.impl.TopicDaoImpl;
import entity.Topic;
import service.ITopicService;

import java.util.List;

public class TopicService implements ITopicService {
    ITopicDao itd=new TopicDaoImpl();

    @Override
    public int getCount() {
        return itd.getCount();
    }

    @Override
    public List getAll(int pageSize, int pageNum) {
        return itd.getAll(pageSize, pageNum);
    }

    @Override
    public int addPublish(Topic topic) {
        return itd.addPublish(topic);
    }

    @Override
    public int updPublish(Topic topic, int fid) {
        return itd.updPublish(topic, fid);
    }

    @Override
    public Topic getUid(int tid) {
        return itd.getUid(tid);
    }
}
